import pandas as pd

def read_arff(file_path: str):
    with open(file_path, encoding='utf-8') as file:
        header = []
        for line in file:
            if line.startswith('@attribute'):
                header.append(line.split()[1])
            elif line.startswith('@data'):
                break
        df = pd.read_csv(file, header=None)
        df.columns = header
    return df